package com.wx.gof.pattern.creational.simplefactory;

/**
 * @ClassName Application
 * @Author wx
 * @Description 应用程序-简单工厂模式
 * @Date 2018-12-02
 */
public class Application {
    public static void main(String[] agrs){
        VideoFactory videoFactory = new VideoFactory();
        Video video = videoFactory.getVideo(JavaVideo.class);
        if(video == null){
            return;
        }
        video.produce();
    }
}
